package com.dpteam.bean;

/**
 * Created with IntelliJ IDEA.
 * User: luolei
 * Date: 2016/1/8
 * Time: 18:32
 */
public class RejectOrderInfo {

    /**
     *
     */
    private int id;
    /**
     *
     */
    private int orderid;
    /**
     *
     */
    private int userId;
    /**
     *
     */
    private String reason;
    /**
     *
     */
    private String time;
    /**
     *
     */
    private int productId;
    /**
     *
     */
    private String productName;
    /**
     *
     */
    private int number;

    public RejectOrderInfo() {
    }

    public RejectOrderInfo(int id, int orderid, int userId, String reason, String time, int productId, String productName, Integer number) {
        this.id = id;
        this.orderid = orderid;
        this.userId = userId;
        this.reason = reason;
        this.time = time;
        this.productId = productId;
        this.productName = productName;
        this.number = number;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("{");
        //String
        sb.append("'reason':'").append(reason).append("',");
        sb.append("'time':'").append(time).append("',");
        sb.append("'productName':'").append(productName).append("',");
        //int
        sb.append("'id':").append(id).append(",");
        sb.append("'orderid':").append(orderid).append(",");
        sb.append("'userId':").append(userId).append(",");
        sb.append("'productId':").append(productId).append(",");
        sb.append("'number':").append(number).append("}");
        return sb.toString();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderid() {
        return orderid;
    }

    public void setOrderid(int orderid) {
        this.orderid = orderid;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
